#!/usr/bin/env python
#-*- coding:utf-8 -*-

#from __future__ import print_function
from Tarea import *

# Un ejemplo de tarea: entrada -> echo3Ways -> stdout \ log \ errores
class echo3Ways (Tarea):

	def __init__(self, entrada, salida, log, errores):
		Tarea.__init__(self,"echo3Ways",entrada,salida,log,errores)

	def process(self, linea, nReg):
		msg = linea.rstrip()

		print ( msg, file=self.salida )
		self.log.info(msg)
		self.errores.error( self.errorMessage(linea,nReg) )

		return Tarea.NOERROR

if __name__ == '__main__':
	pass

